﻿using MindASPCoreWebAPI.DtoModel.SystemManager;
using MindASPCoreWebAPI.IRepository.SystemManager;
using MindASPCoreWebAPI.PoModel.SystemManager;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MindASPCoreWebAPI.Service.SystemManager
{
  

    //公司管理BLL
   public  class CompanyAdminService : BaseService
    {
        private ICompanyAdminRepository _companyAdminRepository;
        public CompanyAdminService(ICompanyAdminRepository companyAdminRepository)
        {
            _companyAdminRepository = companyAdminRepository;
        }


        //行业下拉
        public List<IndustryAdminModel> Down_IndustryAdminModel()
        {
            return _companyAdminRepository.Down_IndustryAdminModel();
        }


        //公司性质下拉
        public List<NatModel> Down_NatModel()
        {
            return _companyAdminRepository.Down_NatModel();
        }


        //公司KA下拉
        public List<KaModel> Down_KaModel()
        {
            return _companyAdminRepository.Down_KaModel();
        }


        //显示公司管理
        public List<CompanyAdminDto> Show_CompanyAdminModel(out int totalcount,int pageindex, int pagesize, int? com_ind_id, int? com_state, int? com_ka_id, int? com_mp4, int? com_ad, string com_name = "")
        {
            return _companyAdminRepository.Show_CompanyAdminModel(out  totalcount,pageindex, pagesize, com_ind_id, com_state, com_ka_id, com_mp4, com_ad,com_name);
        }


        //删除公司
        public int Delete_CompanyAdminModel(int com_id)
        {
            return _companyAdminRepository.Delete_CompanyAdminModel(com_id);
        }


        //详情
        public CompanyAdminModel Eait_Delete_CompanyAdminModel(int com_id)
        {
            return _companyAdminRepository.Eait_Delete_CompanyAdminModel(com_id);
        }


        //修改
        public int Update_CompanyAdminModel(CompanyAdminModel companyAdminModel)
        {
            return _companyAdminRepository.Update_CompanyAdminModel(companyAdminModel);
        }


        //添加
        public int Add_CompanyAdminModel(CompanyAdminModel companyAdminModel)
        {
            return _companyAdminRepository.Add_CompanyAdminModel(companyAdminModel);
        }

    }
}
